package com.example.mobile2021606158zl0330;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private Button button3;
    private TextView textView;
    private EditText editTextTextPersonName;
    private EditText editTextTextPersonName4;
    private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String account=editTextTextPersonName.getText().toString();
                String Password=editTextTextPersonName4.getText().toString();
                if(account.length()==0){
                    Log.i("登录","请输入用户名");
            }
        }) ;


            }
    }
        if(account.length()==0){
            Log.i("登录","请输入用户名");

    }




    private void initView() {
        button3 = (Button) findViewById(R.id.button3);
        textView = (TextView) findViewById(R.id.textView);
        editTextTextPersonName = (EditText) findViewById(R.id.editTextTextPersonName);
        editTextTextPersonName4 = (EditText) findViewById(R.id.editTextTextPersonName4);
        button = (Button) findViewById(R.id.button);
    }
}